<?php include "includes/comunes.php"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include "includes/metas.php"; ?>
<link href="css/estilo.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="contenedor">
	<?php include "includes/head.php"; ?>

<?php include "includes/menu.php"; ?>
    
    
    <div class="cont1">
    
    	<div class="conTop">
        	<div class="conTopTituloIE">
            <img src="images/ingresoegreso.png" />
			<div class="conTopTitulo2">DETALLE POR CONCEPTO</div>
            </div>
        </div>
        <div class="cont2">
          <?php
            $tabla="ingresosegresos";
            $condicion="";
            $orden="group by Ano order by Ano asc ";
            $res=cons_sql($tabla,$condicion,$orden);

          ?>

      
           <?php while($reg=mysql_fetch_array($res)):?>
              <div class="col2A">
         <div class="pagingreTit"><?php echo $reg['Ano'] ?></div>
                <?php
            $tablam="ingresosegresos";
            $condicionm=" Ano=".$reg['Ano'];
            $ordenm="group by Mes order by Mes asc ";
            $resm=cons_sql($tablam,$condicionm,$ordenm);
             while($regm=mysql_fetch_array($resm)):
          ?>
              <a href="../control/archivos/<?php echo utf8_encode($regm['Documento']) ?>"class="pagingreBtn" target="_blanck"><?php echo obtener_mes($regm['Mes']) ?></a>
        
            <?php endwhile ?>
               </div>
         <?php endwhile ?>
         
        <div id="clearing"></div>
        </div>
        <div class="contBot"></div> 
    
    
    <div id="clearing"></div>
    </div>
    
    
    
    
    
  <div class="bg"></div>
<div id="clearing"></div>
</div>
</body>
</html>
